package com.hzgj.bcl.soa.config;

import com.hzgj.bcl.soa.util.Constants;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Created by warning5 on 2017/3/3.
 */
@Getter
@Setter
@ToString
public class ChannelConfig {

    protected int connectTimeoutMills = Constants.DEFAULT_CONNECTTIMEOUT;
    protected int eventThreads = Runtime.getRuntime().availableProcessors() / 2;
    /**
     * channnel空闲时间
     * 单位秒, 默认 30 分钟
     */
    protected int idleTimeSeconds = 20 * 60;
    protected String protocol = Constants.DEFAULT_PROTOCOL;
}
